import request from "@/utils/request";


/**
 * tree
 * @param params
 * @returns {AxiosPromise}
 */
export function listDept(params){
  return request({
    url:'/tDeptRest/treeDept',
    method:'get',
    params
  })
}

export function create(data){
    return request({
        url:'/tDeptRest/create',
        method:'post',
        data
    })
}


export function update(data){
    return request({
        url:'/tDeptRest/update',
        method:'put',
        data
    })
}


export function removeById(id){
    return request({
      url: `/tDeptRest/remove?id=${id}`,
      method: 'delete',
    })
}

